package com.hyb.service.impl;

import com.hyb.mapper.BigitemsMapper;
import com.hyb.pojo.Bigitems;

import com.hyb.service.BigitemsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;
import java.util.Map;

@Service
public class BigitemsServiceImpl implements BigitemsService {
    @Autowired
    BigitemsMapper bigitemsMapper;
    @Override
    public List<Bigitems> getAll() {
        return bigitemsMapper.selectAll();
    }

    @Override
    public List<Bigitems> getAllexcludeById(int bi_id) {
        return bigitemsMapper.selectAllexcludeById(bi_id);
    }

    @Override
    public Bigitems getById(int bi_id) {
        return bigitemsMapper.selectById(bi_id);
    }

    @Override
    public void deleteById(int bi_id) {
        bigitemsMapper.deleteById(bi_id);
    }

    @Override
    public void addAll(String bi_name) {
        bigitemsMapper.addAll(bi_name);
    }

    @Override
    public void updateById(Map map) {
        bigitemsMapper.updateById(map);
    }

    @Override
    public List<Bigitems> getAllBySort() {
        return bigitemsMapper.selectAllBySort();
    }
}
